package com.ssm.pre.dao;

import java.util.List;
import java.util.Map;

public interface FamilyDao {
	// 查询住户信息
	public List<Map<String, Object>> queryFamilyList(Map<String, Object> map) throws Exception;

	// 新增住户信息
	public int addFamily(Map<String, Object> map) throws Exception;

	// 修改住户信息
	public int editFamily(Map<String, Object> map) throws Exception;

	// 删除住户信息
	public int deleteFamilyById(Map<String, Object> map) throws Exception;

	// 根据id查询
	public Map<String, Object> findFamilyById(Map<String, Object> map) throws Exception;

	// 新增住户信息
	public void addWechatFamily(Map<String, Object> map) throws Exception;
	
	//查找openId
	public Map<String, Object> queryWechatFamilyByOpenId(Map<String, Object> map) throws Exception;

	public List<Map<String, Object>> findWechatFamilyByOpenId(Map<String, Object> map)throws Exception;
}
